package cn.wggf.dev.qcgg.service.impl;

import cn.wggf.dev.qcgg.dao.UserDao;
import cn.wggf.dev.qcgg.dao.impl.UserDaoImpl;
import cn.wggf.dev.qcgg.pojo.User;
import cn.wggf.dev.qcgg.service.UserService;

/**
 * 
 * 用户 Service 接口的实现
 * 
 * @author Yubo Jia
 * 
 */
public class UserServiceImpl implements UserService {
	// 注入 Dao
	private UserDao userDao = new UserDaoImpl();

	// Service Method
	public User getUserById(int id) {
		return userDao.findById(id);
	}

	public User getUserByNameAndBirthday(String name, String birthday) {
		return userDao.findByNameAndBirthday(name, birthday);
	}
}